<?php

// Check if the right PHP functions are enabled
$WarningHtml = '';
if( !ini_get( 'allow_url_include' ) ) {
	$WarningHtml .= "<div class=\"warning\">The PHP function <em>allow_url_include</em> is not enabled.</div>";
}
if( !ini_get( 'allow_url_fopen' ) ) {
	$WarningHtml .= "<div class=\"warning\">The PHP function <em>allow_url_fopen</em> is not enabled.</div>";
}


$page[ 'body' ] .= "
<div class=\"body_padded\">
	<h1>文件包含漏洞</h1>

	{$WarningHtml}

	<div class=\"vulnerable_code_area\">
		[<em><a href=\"?page=file1.php\">file1.php</a></em>] - [<em><a href=\"?page=file2.php\">file2.php</a></em>] - [<em><a href=\"?page=file3.php\">file3.php</a></em>]
	</div>

	<h2>更多操作</h2>
	<ul>
	<li>" . dvwaExternalLinkUrlGet( '#', '教程视频' ) . "
	<div>
	<video style='width: 100%;' controls='' autoplay='false' name='media'>
	<source src='../../mp4/file-include.mp4' type='video/mp4'>
	</video>
	</div>
	</li>
	<li>" . dvwaExternalLinkUrlGet( '../../html/file-include.html', '教程文档' ) . "
	</li>
	<li>" . dvwaExternalLinkUrlGet( 'https://baidu.com', '百度一下' ) . "</li>
	</ul>
</div>\n";

?>
